package org.devops

//下载代码
def GetCode(branchName, srcUrl){
    println("CheckOut...")
    checkout scmGit(branches: [[name: "${branchName}"]], 
                    extensions: [], 
                    userRemoteConfigs: [[
                        credentialsId: 'e0fd8ae2-a9de-49db-877e-094c59c396d8', 
                        url: "${srcUrl}"]])
    sh "ls -l "
}